cd c:\
cd C:\Program Files\MySQL\MySQL Server 5.7\bin
mysql -u root -p123456*Aa --tee=d:\mysql_op.log